package com.example.leetcode.string;

import com.example.leetcode.string.common.StringUtils;

class Solution28 {
    public int strStr(String haystack, String needle) {
        // todo KMP
        return StringUtils.strStr(haystack, needle);
    }
}

public class leetcode28 {
    public static void main(String[] args) {
        Solution28 solution28 = new Solution28();
        System.out.println(solution28.strStr("sadbutsad", "sad"));
        System.out.println(solution28.strStr("leetcode", "leeto"));
    }

}
